import layout from '@/layout'
export default {
  path: '/dispatch',
  component: layout,
  meta: {
    title: '调度管理',
    icon: 'clipboard'
  },
  children: [{
    path: 'transport',
    name: 'transport',
    component: () => import('@/views/dispatch/transport.vue'),
    meta: {
      title: '运输任务管理'
    }
  }, {
    path: 'line',
    name: 'line',
    component: () => import('@/views/dispatch/line.vue'),
    meta: {
      title: '线路管理'
    }
  }, {
    path: 'claim',
    name: 'claim',
    component: () => import('@/views/dispatch/claim.vue'),
    meta: {
      title: '取件作业管理'
    }
  }, {
    path: 'delivery',
    name: 'delivery',
    component: () => import('@/views/dispatch/delivery.vue'),
    meta: {
      title: '派件作业管理'
    }
  }, {
    // ? 可以选择携带或者不带 id 传参过去
    path: 'transportDetail/:id?', // 员工详情的地址
    name: 'transportDetail',
    component: () => import('@/views/dispatch/component/transportDetail.vue'),
    hidden: true, // 表示隐藏在左侧菜单
    meta: {
      title: '运输任务详情'
    }
  }]
}
